package com.party.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.party.business.mapper.CombatPowerMapper;
import com.party.business.domain.CombatPower;
import com.party.business.service.ICombatPowerService;

/**
 * 战斗力量Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class CombatPowerServiceImpl extends ServiceImpl<CombatPowerMapper,CombatPower>  implements ICombatPowerService
{
    @Autowired
    private CombatPowerMapper combatPowerMapper;

    /**
     * 查询战斗力量
     *
     * @param id 战斗力量主键
     * @return 战斗力量
     */
    @Override
    public CombatPower selectCombatPowerById(Long id)
    {
        return combatPowerMapper.selectCombatPowerById(id);
    }

    /**
     * 查询战斗力量列表
     *
     * @param combatPower 战斗力量
     * @return 战斗力量
     */
    @Override
    public List<CombatPower> selectCombatPowerList(CombatPower combatPower)
    {
        return combatPowerMapper.selectCombatPowerList(combatPower);
    }

    /**
     * 新增战斗力量
     *
     * @param combatPower 战斗力量
     * @return 结果
     */
    @Override
    public int insertCombatPower(CombatPower combatPower)
    {
            return combatPowerMapper.insertCombatPower(combatPower);
    }

    /**
     * 修改战斗力量
     *
     * @param combatPower 战斗力量
     * @return 结果
     */
    @Override
    public int updateCombatPower(CombatPower combatPower)
    {
        return combatPowerMapper.updateCombatPower(combatPower);
    }

    /**
     * 批量删除战斗力量
     *
     * @param ids 需要删除的战斗力量主键
     * @return 结果
     */
    @Override
    public int deleteCombatPowerByIds(Long[] ids)
    {
        return combatPowerMapper.deleteCombatPowerByIds(ids);
    }

    /**
     * 删除战斗力量信息
     *
     * @param id 战斗力量主键
     * @return 结果
     */
    @Override
    public int deleteCombatPowerById(Long id)
    {
        return combatPowerMapper.deleteCombatPowerById(id);
    }
}
